<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

$goods_id = 0;

$goodsInfo = \Biz\model\GoodsBasicInfo::get('*', [ 'goods_id[>]' => $goods_id ]);

while ($goodsInfo) {
	$goods_id = $goodsInfo['goods_id'];

	echo $goods_id  . "\r\n";
	\Biz\cache\Goods::delItem($goods_id);
	\Biz\cache\GoodsBasicInfo::delItem($goods_id);
	$info = \Biz\service\search\Goods::updateByGoodsId($goods_id);
	var_dump($info);
	echo $goods_id . "\r\n";
	$goodsInfo = \Biz\model\GoodsBasicInfo::get('*', [ 'goods_id[>]' => $goods_id ]);
}




































